<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'saveUI.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    This is my JSP page. <br>
    <s:form action="towelAction_update.action" method="post" enctype="multipart/form-data">
    	<s:hidden name="id"></s:hidden>
    	<s:textfield name="name" label="毛巾名称"></s:textfield>
   		<s:select label="类别" name="categoryId" list="#request.categorys" listKey="id" listValue="name"></s:select>
   		<s:textfield name="productNum" label="产品编号"></s:textfield>
   		<s:textfield name="price1" label="市场价"></s:textfield>
   		<s:textfield name="price2" label="批发价"></s:textfield>
   		<s:textfield name="size1" label="尺寸"></s:textfield>
   		<s:textfield name="weight" label="重量"></s:textfield>
   		<s:file name="imageFile" label="图片"></s:file>
   		<s:submit value="保存"></s:submit>
   		<s:reset value="取消"></s:reset>
    </s:form>
    <img alt="name" src="images/${image}">
  </body>
</html>
